﻿{extend name="public:base" /}

{block name="content"}


<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <form method="post">
                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">名称</label>
                                <div class="col-sm-3"><input type="text" name="name" class="form-control" placeholder="请输入名称" value="{$info.name}"></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>


                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">类型</label>

                                <div class="col-sm-3">
                                    <select class="form-control m-b" name="is_nav">
                                        <option value="2" {if ($info['is_nav'] == 2)}selected{/if}>首页内容分类</option>
                                        <option value="1" {if ($info['is_nav'] == 1)}selected{/if}>导航分类</option>
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">排序</label>
                                <div class="col-sm-3"><input type="text" name="sort" class="form-control" placeholder="请输入排序" value="{$info.sort}"></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <input type="hidden" name="id" value="{:input('id')}">
                        <input type="hidden" name="pid" value="{:input('pid')}">

                        <div class="form-group row">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button type="button" class="btn btn-w-m btn-default back-page">返回</button>
                                <button type="button" class="btn btn-w-m btn-primary ajax-post">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}
